home *** CD-ROM | disk | FTP | other *** search
- /*
- File: LocationManager.k.h
-
- Contains: LocationManager (manange preferences for different physical locations)
-
- Version: System 7.6
- Package: Location Manager SDK 1.0
-
- Copyright: © 1984-1997 by Apple Computer, Inc.
- All rights reserved.
-
- Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- stack. Include the file and version information (from above)
- in the problem description and send to:
- Internet: apple.bugs@apple.com
-
- */
-
- #ifndef __LOCATIONMANAGER_K__
- #define __LOCATIONMANAGER_K__
-
- #include <LocationManager.h>
-
- /*
- Example usage:
-
- #define ALM_BASENAME() Fred
- #define ALM_GLOBALS() FredGlobalsHandle
- #include <LocationManager.k.h>
-
- To specify that your component implementation does not use globals, do not #define ALM_GLOBALS
- */
-
-
- #ifndef ALM_BASENAME
- #error ALM_BASENAME must be defined to use this file
- #endif
-
- #ifndef ALM_GLOBALS
- #define ALM_GLOBALS()
- #define ADD_ALM_COMMA
- #else
- #define ADD_ALM_COMMA ,
- #endif
-
- #define ADD_ALM_BASENAME(name) ALM_BASENAME()##name
-
- extern pascal ComponentResult ADD_ALM_BASENAME(GetCurrent)
- (ALM_GLOBALS() ADD_ALM_COMMA Handle setting);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(SetCurrent)
- (ALM_GLOBALS() ADD_ALM_COMMA Handle setting, ALMRebootFlags* flags);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(CompareSetting)
- (ALM_GLOBALS() ADD_ALM_COMMA Handle setting1, Handle setting2, Boolean* equal);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(EditSetting)
- (ALM_GLOBALS() ADD_ALM_COMMA Handle setting);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(DescribeSettings)
- (ALM_GLOBALS() ADD_ALM_COMMA Handle setting, CharsHandle text);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(DescribeError)
- (ALM_GLOBALS() ADD_ALM_COMMA OSErr lastErr, Str255 errStr);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(ImportExport)
- (ALM_GLOBALS() ADD_ALM_COMMA Boolean import, Handle setting, short resRefNum);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(GetScriptInfo)
- (ALM_GLOBALS() ADD_ALM_COMMA ALMScriptMgrInfo* info);
-
- extern pascal ComponentResult ADD_ALM_BASENAME(GetInfo)
- (ALM_GLOBALS() ADD_ALM_COMMA CharsHandle* text, STHandle* style, ModalFilterUPP filter);
-
-
- /* selectors for component calls */
- enum {
- kALMGetCurrentSelect = 0x0000,
- kALMSetCurrentSelect = 0x0001,
- kALMCompareSettingSelect = 0x0002,
- kALMEditSettingSelect = 0x0003,
- kALMDescribeSettingsSelect = 0x0004,
- kALMDescribeErrorSelect = 0x0005,
- kALMImportExportSelect = 0x0006,
- kALMGetScriptInfoSelect = 0x0007,
- kALMGetInfoSelect = 0x0008
- };
-
- #endif /* __LOCATIONMANAGER_K__ */
-
-